<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        function preview() {
            //var url="http://127.0.0.1:8080/file/C:\\Users\\李赛飞\\Desktop\\黔常线列控基础数据V1.0（工务类）92.docx"
            var url="C:\\Users\\李赛飞\\Desktop\\黔常线列控基础数据V1.0（工务类）92.docx"
            window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(url));
        }
        
    </script>
</head>
<body>
    <div>
        <input type="button" onclick="preview()" value="预览">
    </div>
</body>
</html>